<!--
 * @Author: 宋杰
 * @Date: 2021-03-16 23:42:20
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-03-17 08:51:15
 * @Description: 一家十一口(猜一字)左上
-->
<template>
  <div class="divBox">
    <!-- 标签 -->
      <div class="titleBox">
        <div>系统健康监控</div>
      </div>
    <div class="con_left2">
      <div class="con_left2_title">
        <div>
          <div class="fangkuai fangkuai1"></div>
          <div>正常</div>
        </div>
        <div>
          <div class="fangkuai fangkuai2"></div>
          <div>宕机</div>
        </div>
        <div>
          <div class="fangkuai fangkuai3"></div>
          <div>高负载</div>
        </div>
      </div>

      <div class="con_left2_F1">
        <div class="con_left2_F1_top">
          <div class="con_left2_F1_top_color1">
            <div>物理机1</div>
            <div>IP:23145678912</div>
          </div>
          <div class="con_left2_F1_top_color2">
            <div>物理机2</div>
            <div>IP:23145678912</div>
          </div>
          <div class="con_left2_F1_top_color3">
            <div>物理机3</div>
            <div>IP:23145678912</div>
          </div>
          <div class="con_left2_F1_top_color4">
            <div>物理机4</div>
            <div>IP:23145678912</div>
          </div>
          <div class="con_left2_F1_top_color5">
            <div>物理机5</div>
            <div>IP:23145678912</div>
          </div>
          <div class="con_left2_F1_top_color6">
            <div>物理机6</div>
            <div>IP:23145678912</div>
          </div>
          <div class="con_left2_F1_top_color7">
            <div>物理机7</div>
            <div>IP:23145678912</div>
          </div>
          <div class="con_left2_F1_top_color8">
            <div>物理机8</div>
            <div>IP:23145678912</div>
          </div>
        </div>
        <div class="con_left2_F1_con">
          <div class="con_left2_F1_con_2">
            <div>
              <div>78%</div>
              <div class="con_left2_F1_con_2_txt">CPU</div>
            </div>
            <div>
              <div>65%</div>
              <div class="con_left2_F1_con_2_txt">内存</div>
            </div>
            <div>
              <div>50%</div>
              <div class="con_left2_F1_con_2_txt">存储</div>
            </div>
            <div>
              <div>40%</div>
              <div class="con_left2_F1_con_2_txt">并发压力</div>
            </div>
            <div>
              <div>38%</div>
              <div class="con_left2_F1_con_2_txt">磁盘IO</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
//import {} from '';
export default {
  name: "",
  data() {
    return {};
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
  //方法集合
  methods: {},
};
</script>
<style lang="scss" scoped>
.divBox {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  >:nth-child(2) {
    width: 100%;
    height: 100%;
  }
  // border: 1px solid #fff;
}
// 系统健康
.titleBox {
  font-family: PingFangSC-Regular;
  font-size: 0.3rem;
  color: #75bdff;
  letter-spacing: 0.015rem;
  text-align: left;
  line-height: 0.5rem;
  height: 0.5rem;
  width: 100%;
  background: url("../../assets/heng2.png") no-repeat;
  background-size: 6rem 40%;
  background-position: left 0 bottom 0;
  margin-bottom: 0.05rem;
}
.con_left1_2 {
  // border: 1px solid #d3d6dd;
  height: 0.5rem;
  line-height: 0.5rem;
  font-family: PingFangSC-Regular;
  font-size: 0.3rem;
  color: #75bdff;
  // text-align: left;

  background: url("../../assets/heng2.png") no-repeat;
  background-size: 5rem 40%;
  background-position: right 0 bottom 0;
}

.con_left2 {
  // border: 1px solid #4c7df1;
  width: 100%;
  height: 100%;
  position: relative;
}
.con_left2_title {
  // border: 1px solid #4c7df1;
  position: absolute;
  top: -0.3rem;
  left: 40%;
  display: flex;
  align-items: center;
  justify-content: center;

  > div {
    // c
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    // border: 1px solid #ffffff;
    .fangkuai {
      width: 0.2rem;
      height: 0.2rem;
      border-radius: 0.02rem;
      margin-right: 0.2rem;
    }
    .fangkuai1 {
      background: #44d7b6;
    }
    .fangkuai2 {
      background: #ff4343;
    }
    .fangkuai3 {
      background: #f7b500;
    }
    // 物理机
    > :nth-child(2) {
      font-family: PingFangSC-Medium;
      font-size: 0.25rem;
      color: #1cd3f3;
      letter-spacing: 0;
      line-height: 0.25rem;
    }
  }
}
.con_left2_F1 {
  // border: 5px solid #5af14c;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.con_left2_F1_top {
  height: 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 0.2rem;
  > div {
    margin: 0 0.1rem;
    width: 100%;
    height: 1.2rem;
    background: url("../../assets/xitbk.png");
    background-size: 100% 100%;
    background-color: rgba($color: #1a8085, $alpha: 0.8);

    > :nth-child(1) {
      font-family: PingFangSC-Medium;
      font-size: 0.3rem;
      color: #1cd3f3;
      height: 60%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    > :nth-child(2) {
      font-family: PingFangSC-Regular;
      font-size: 0.15rem;
      color: #ffffff;
    }
  }
  .con_left2_F1_top_color1 {
    background-color: rgba($color: #ff4343, $alpha: 0.8) !important;
  }
  .con_left2_F1_top_color3 {
    background-color: rgba($color: #00e2ff, $alpha: 0.8) !important;
    > div {
      color: #222222 !important;
    }
  }
  .con_left2_F1_top_color6 {
    background-color: rgba($color: #f7b500, $alpha: 0.8) !important;
  }
  .con_left2_F1_top_color8 {
    background-color: rgba($color: #f7b500, $alpha: 0.8) !important;
  }
}
.con_left2_F1_con {
  // border: 1px solid #4c7df1;
  flex: 1;
  width: 100%;
  padding: 0 0.1rem;
}
.con_left2_F1_con_2 {
  height: 100%;
  width: 100%;
  // border: 1px solid #4c7df1;
  // width: 100%;
  // height: 4rem;
  background: url("../../assets/img/WLJXSSJ.png") no-repeat;
  background-size: 100% 100%;
  // margin: 0 0.1rem 0 0.1rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  > div {
    // border: 1px solid #4c7df1;
    position: relative;
    height: 2.2rem;
    width: 2.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: PingFangSC-Regular;
    font-size: 0.35rem;
    color: #68d5ea;
    letter-spacing: 0;
    text-align: center;
    background: url("../../assets/quan.png") no-repeat;
    background-size: 100% 100%;
  }
  .con_left2_F1_con_2_txt {
    position: absolute;
    bottom: -0.6rem;
  }
}
</style>
